<template>
  <div class="home-page">
    <div class="swiper-container" :style="{'height':swiperHeight+'px'}">
      <div class="sanjiao">
        <img src="../../assets/sanjiao.png" alt="">
        <img src="../../assets/down.png" alt="" class="down-jiantou">
      </div>
      <div class="swiper-wrapper">
        <div class="swiper-slide box1">
          <div>
            <span>OXFORD SIXTH FORM COLLEGE</span>
            <span>牛津学院</span>

          </div>
          <div>
            <span>An independent college specialising in A-level and GCSE tuition</span>
            <span>专注于提供A-Level和GCSE课程的私立学院</span>
          </div>
        </div>

      </div>
      <!-- Add Pagination -->
      <!--      <div class="swiper-pagination"></div>-->
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
    </div>

    <div class="mid" style="padding-left: 60px;">
      <img src="../../assets/oxsfc/logo-OTC.jpg" alt="" style="width: 30%;display: block;">
    </div>

    <div class="mid">
      <div>
        <p><span>牛津学院</span>是一所免试入学的走读寄宿混合制私立Six
          Form学院，招收15至19岁学生，专注于提供A-Level、GCSE、BTEC和NCUK课程。学院成立于1988年，现已成为英国顶尖的辅导学院之一。</p>
        <p>它位于学术氛围浓厚的牛津城中心，拥有优秀的导师，学习环境极佳。与主流学校相比，牛津学院课程更具灵活性，提供涵盖A-Level、GCSE和BTEC考试科目的30多门学科课程。</p>
        <p>对于希望提高成绩的学生，学院还提供专门的复习课程，确保在合适的环境下，学生有机会提高成绩，并在一流大学获得一席之地。</p>
      </div>
      <div>
        <p ><span>牛津学院成果简介：</span></p>
        <ul>
          <li>- 2019年，学院学生被剑桥大学、杜伦大学、伦敦大学学院等众多英国名校录取；</li>
          <li>- 70%学生被第一志愿大学录取；</li>
          <li>- 2019年，96%的BTEC课程学生成绩达到优秀或优秀*（相当于A-Level的A-A*）；</li>
          <li>- A-Level课程班级平均人数4人；</li>
          <li>- 半数以上导师毕业于牛津和剑桥大学；</li>
          <li>- 教学、学习和评估质量被英国教育标准办公室评级为“优秀”；</li>
          <li>- 42%学生来自英国本土。</li>
        </ul>
      </div>
    </div>
    <div class="fangwen">
      <a href="https://www.oxfordsixthformcollege.com/" target="_blank">访问我们的网站</a>
    </div>
    <div class="map">
      <div>
        <div>
          <img src="../../assets/biaoji.png" alt="" class="biaoji-size">
        </div>
        <div>
          <span><strong style="font-size: 18px;line-height: 32px">联系方式</strong></span>
          <span style="margin-bottom: 20px;"><strong style="font-size: 18px;">牛津学院</strong></span>
          <span>Oxford Sixth Form College</span>
          <span>12 King Edward Street</span>
          <span>Oxford, OX1 4HT</span>
          <span>邮箱： info@oxfordsixthformcollege.com</span>
<!--          <span>info@oxcoll.com</span>-->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import swiper from '../../assets/swiper/swiper-bundle.min'

  export default {
    name: "index",
    created() {
      let H = window.innerHeight

      this.swiperHeight = H
    },
    mounted() {
      var swiper = new Swiper('.swiper-container', {
        // spaceBetween: 30,
        centeredSlides: true,
        /*autoplay: {
          delay: 2500,
          disableOnInteraction: false,
        },*/
        pagination: {
          el: '.swiper-pagination',
          clickable: true,
        },
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
        },
      });
    }
  }
</script>

<style scoped lang="scss">
  .main-center {
    max-width: 1200px;
    margin: 0 auto;
  }

  .swiper-container {
    width: 100%;
    height: 1000px;
    position: relative;
  }

  .sanjiao {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    z-index: 222;

    img {
      width: 120px;
      display: block;
    }

    span {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      display: block;
      text-align: center;
      color: #303030;
      z-index: 999;
    }

    .down-jiantou {
      position: absolute;
      left: 50%;
      margin-left: -19px;
      bottom: 9px;
      width: 38px;
      animation: shangxia 0.7s linear infinite;
    }
    @keyframes shangxia {
      0% {bottom: 9px}
      50%{bottom: 3px}
      100%{bottom: 9px}
    }
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }

  .swiper-slide > div:nth-of-type(1) {
    margin: 60px 0;
    margin-bottom: 35px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .65);
    padding: 20px 35px;
  }

  .swiper-slide > div:nth-of-type(1) span:nth-of-type(1) {
    font-size: 17px;
    color: #303030;
    margin-bottom: 20px;
  }

  .swiper-slide > div:nth-of-type(1) span:nth-of-type(2) {
    font-size: 25px;
    font-weight: bold;
    color: #303030;
  }

  .swiper-slide > div:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    padding: 10px 40px;
    background: rgba(255, 255, 255, .65);
    transition: all .4s ease;
    cursor: pointer;
  }

  .swiper-slide > div:nth-of-type(2) span {


    line-height: 32px;
    font-size: 18px;
    color: #303030;
  }

  .swiper-slide > div:nth-of-type(2):hover {
    background: #3281c4;
  }

  .box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .box1 {
    background: url("../../assets/oxsfc/oxsfc-5.jpg") no-repeat center center;
  }

  .box2 {
    background: url("../../assets/UP-2.jpg") no-repeat center center;
  }

  .box3 {
    background: url("../../assets/UP-3.jpg") no-repeat center center;
  }

  .box4 {
    background: url("../../assets/UP-4.jpg") no-repeat center center;
  }


  .mid {
    margin: 40px auto 40px auto;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 17px;
    line-height: 36px;

    div {
      flex: 1;
      width: 50%;
      margin: 0 30px;
      display: flex;
      flex-direction: column;

      p {
        span {
          font-weight: bold;
        }
      }

      ul {
        display: flex;
        flex-direction: column;

        li {
          /*margin-bottom: 15px;*/
          margin-bottom: 20px;
          line-height: 24px;
          span {
            font-weight: bold;

          }
        }
      }
    }
  }

  .fangwen {
    text-align: center;
    margin: 50px auto 80px auto;

    a {
      padding: 18px 26px;
      background: #303030;
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    a:hover {
      background: #3281c4;
    }
  }


  .map {
    padding: 45px 0 90px 0;
    background: url("../../assets/oic/map_bg.jpg") no-repeat center center;
    background-size: 100% auto;
  }

  .map > div {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 25px 30px 30px;
    display: flex;
    flex-direction: row;

    div:nth-of-type(1) {
      margin-right: 20px;

      .biaoji-size {
        display: block;
        width: 60px;
      }
    }

    div:nth-of-type(2) {
      display: flex;
      flex-direction: column;
      padding-bottom: 70px;

      span {
        margin-bottom: 15px;
      }
    }
  }
</style>
